from common import *
from mig.csp2mig.client import Taggedvalue

def MiG_InOrderInFunc(in0,out0):
	next_tag = 0
	while True:
		# input val
		val0 = in0()
		tv = Taggedvalue(val0,next_tag)
		next_tag += 1
		# send to mig process
		out0(tv)
